from django.db import models

class User(models.Model):
    uname = models.CharField(max_length=100,null=False)
    pwd = models.CharField(max_length=100,null=False)


class Car_type(models.Model):
    cname = models.CharField(max_length=100)

class Car_info(models.Model):
    iname = models.CharField(max_length=100,null=False)
    iPrice = models.FloatField()
    iMark = models.CharField(max_length=100, null=False)
    dataa = models.DateField(auto_now_add=True)
    Car_type = models.ForeignKey(Car_type,on_delete=models.CASCADE)

    class Meta():
        db_table = 'Car_info'

